package com.ruoyi.consume.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 化肥临时领用对象 fertilizer_apply_temporary
 *
 * @author ruoyi
 * @date 2021-07-27
 */
public class FertilizerApplyTemporaryCon extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号自动编号，主码 */
    private Long fertilizerApplyTemporaryId;

    /** 肥料类型 */
    @Excel(name = "肥料类型编号")
    private Long fertilizerTypeId;
    /** 肥料类型 */
    @Excel(name = "肥料类型名称")
    private String fertilizerType;

    /** 肥料名称 */
    @Excel(name = "肥料名称编号")
    private Long fertilizerNameId;
    /** 肥料名称 */
    @Excel(name = "肥料名称")
    private String fertilizerName;

    /** NPK含量 */
    @Excel(name = "NPK含量")
    private String npkContent;

    /** 肥料品牌 */
    @Excel(name = "肥料品牌")
    private String brand;

    /** 购自公司 */
    @Excel(name = "购自公司")
    private String originCompany;

    /** 申请量 */
    @Excel(name = "申请量")
    private Double applyAmount;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyTime;

    /** 申请人 */
    @Excel(name = "申请人编号")
    private Long userId;
    /** 申请人 */
    @Excel(name = "申请人名称")
    private String userName;

    /** 生产厂长审批状态0表示申请，1表示审批通过，2表示不通过 */
    @Excel(name = "生产厂长审批状态", readConverterExp = "0=未审核,1=审批通过,2=审批不通过")
    private Long approvalStatusProduct;

    /** 技术厂长审批状态0表示申请，1表示审批通过，2表示不通过 */
    @Excel(name = "技术厂长审批状态", readConverterExp = "0=未审核,1=审批通过,2=审批不通过")
    private Long approvalStatusTechnology;

    /** 领用状态未领用 | 已领用 */
    @Excel(name = "领用状态", readConverterExp = "0=未领用,1=已领用")
    private String consumeStatus;

    public void setFertilizerApplyTemporaryId(Long fertilizerApplyTemporaryId)
    {
        this.fertilizerApplyTemporaryId = fertilizerApplyTemporaryId;
    }
    public Long getFertilizerApplyTemporaryId()
    {
        return fertilizerApplyTemporaryId;
    }

    public void setFertilizerTypeId(Long fertilizerTypeId)
    {
        this.fertilizerTypeId = fertilizerTypeId;
    }
    public Long getFertilizerTypeId()
    {
        return fertilizerTypeId;
    }

    public void setFertilizerType(String fertilizerType) {
        this.fertilizerType = fertilizerType;
    }
    public String getFertilizerType() {
        return fertilizerType;
    }

    public void setFertilizerNameId(Long fertilizerNameId)
    {
        this.fertilizerNameId = fertilizerNameId;
    }
    public Long getFertilizerNameId()
    {
        return fertilizerNameId;
    }

    public void setFertilizerName(String fertilizerName) {
        this.fertilizerName = fertilizerName;
    }
    public String getFertilizerName() {
        return fertilizerName;
    }

    public void setNpkContent(String npkContent)
    {
        this.npkContent = npkContent;
    }
    public String getNpkContent()
    {
        return npkContent;
    }

    public void setBrand(String brand)
    {
        this.brand = brand;
    }
    public String getBrand()
    {
        return brand;
    }

    public void setOriginCompany(String originCompany)
    {
        this.originCompany = originCompany;
    }
    public String getOriginCompany()
    {
        return originCompany;
    }

    public void setApplyAmount(Double applyAmount)
    {
        this.applyAmount = applyAmount;
    }
    public Double getApplyAmount()
    {
        return applyAmount;
    }

    public void setApplyTime(Date applyTime)
    {
        this.applyTime = applyTime;
    }
    public Date getApplyTime()
    {
        return applyTime;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }
    public Long getUserId()
    {
        return userId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getUserName() {
        return userName;
    }

    public void setApprovalStatusProduct(Long approvalStatusProduct)
    {
        this.approvalStatusProduct = approvalStatusProduct;
    }
    public Long getApprovalStatusProduct()
    {
        return approvalStatusProduct;
    }

    public void setApprovalStatusTechnology(Long approvalStatusTechnology)
    {
        this.approvalStatusTechnology = approvalStatusTechnology;
    }
    public Long getApprovalStatusTechnology()
    {
        return approvalStatusTechnology;
    }

    public void setConsumeStatus(String consumeStatus)
    {
        this.consumeStatus = consumeStatus;
    }
    public String getConsumeStatus()
    {
        return consumeStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("fertilizerApplyTemporaryId", getFertilizerApplyTemporaryId())
            .append("fertilizerTypeId", getFertilizerTypeId())
            .append("fertilizerNameId", getFertilizerNameId())
            .append("npkContent", getNpkContent())
            .append("brand", getBrand())
            .append("originCompany", getOriginCompany())
            .append("applyAmount", getApplyAmount())
            .append("applyTime", getApplyTime())
            .append("userId", getUserId())
            .append("approvalStatusProduct", getApprovalStatusProduct())
            .append("approvalStatusTechnology", getApprovalStatusTechnology())
            .append("consumeStatus", getConsumeStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
